// /** 增加积分类型: 绩效、考勤、退款、手动 */
// type AddPointType = 'performance' | 'attendance' | 'refund' | 'manual';
// /** 减少积分类型: 消费、手动 */
// type ReducePointType = 'consume' | 'manual';

export const PointType = [
  'performance',
  'attendance',
  'refund',
  'manual',
  'consume',
  'system',
] as const;

export enum PointTypeEnum {
  '绩效' = 'performance',
  '考勤' = 'attendance',
  '退款' = 'refund',
  '手动' = 'manual',
  '消费' = 'consume',
  '系统' = 'system',

  'performance' = '绩效',
  'attendance' = '考勤',
  'refund' = '退款',
  'manual' = '手动',
  'consume' = '消费',
  'system' = '系统',
}

export enum OrderResult {
  待出货 = 0,
  成功 = 1,
  退款 = 2,
  失败 = -1,
}

export const DeviceResult = [-1, 0, 1] as const;
export enum DeviceResultEnum {
  失败 = -1,
  待出货 = 0,
  成功 = 1,
}
